@import "~assets/styles/_bootstrap";

.loading {
	position: relative;
	width: 100%;
	height: 100%;

	&:before {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		display: block;
		content: ' ';
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, .3);
		z-index: 15000;
	}

	.loading-body {
    position: fixed;
    top: 50%;
    left: 50%;
    padding: rem(17px) rem(23px);
    min-height: 0;
    max-height: auto;
    min-width: 0;
    max-width: 100%;
    width: auto;
    height: auto;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    border-radius: rem(5px);
    color: #fff;
    transform: translate(-50%, -50%);
    z-index: 16000;


		.loading-icon {
	    display: inline-block;

	    margin-bottom: rem(10px);
	    width: rem(38px);
	    height: rem(38px);
	    vertical-align: baseline;
	    vertical-align: middle;
	    animation: mymove 1s steps(6) infinite;
	    background: url(~assets/images/svg/loading.svg);
	    background-size: 100%;
		}

		.loading-text {
			margin: 0;
		}

	}

  transition: all 500ms ease-in-out;

  &.out {
    opacity: 0;
  }

}

@keyframes mymove
{
	0% {-webkit-transform:rotate(0deg);}
	50% {-webkit-transform:rotate(180deg);}
	100% {-webkit-transform:rotate(360deg);}
}
